package org.zfes.snowier.cloud.zbss.cms.words.model;
import org.zfes.snowier.common.dao.IBaseModel;
public class CmsWordsHistory extends IBaseModel{

	private static final long serialVersionUID = 1L;
	
	public CmsWordsHistory() {}
	public CmsWordsHistory(Long id) {
		this.setId(id);
	}
	//<-------------------------------------------->

 
	@javax.validation.constraints.NotNull(message="关键词不能为空")
	@javax.validation.constraints.NotBlank(message="关键词不能为空")
	 @org.hibernate.validator.constraints.Length(min=0,max=100,message="关键词长度不能大于100")
	  private java.lang.String words;
 
	@javax.validation.constraints.NotNull(message="状态:不能为空")
	  private java.lang.Byte status;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=50,message="用户id长度不能大于50")
	  private java.lang.String account;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=64,message="设备imei号长度不能大于64")
	  private java.lang.String deviceId;
 
	
	  private java.lang.Long userId;
 
	
	  private java.lang.Long siteId;
 
	@javax.validation.constraints.NotNull(message="创建时间不能为空")
	  private java.util.Date createTime;
 
	@javax.validation.constraints.NotNull(message="最后修改时间不能为空")
	  private java.util.Date updateTime;
 
	
	//<-------------------------------------------->
	public CmsWordsHistory setWords(java.lang.String words){
		this.words=words==null?null:words.trim();
	 return this;
	}
	public java.lang.String getWords(){
		return this.words;
	}
	public CmsWordsHistory setStatus(java.lang.Byte status){
	 this.status=status;
	 return this;
	}
	public java.lang.Byte getStatus(){
		return this.status;
	}
	public CmsWordsHistory setAccount(java.lang.String account){
		this.account=account==null?null:account.trim();
	 return this;
	}
	public java.lang.String getAccount(){
		return this.account;
	}
	public CmsWordsHistory setDeviceId(java.lang.String deviceId){
		this.deviceId=deviceId==null?null:deviceId.trim();
	 return this;
	}
	public java.lang.String getDeviceId(){
		return this.deviceId;
	}
	public CmsWordsHistory setUserId(java.lang.Long userId){
	 this.userId=userId;
	 return this;
	}
	public java.lang.Long getUserId(){
		return this.userId;
	}
	public CmsWordsHistory setSiteId(java.lang.Long siteId){
	 this.siteId=siteId;
	 return this;
	}
	public java.lang.Long getSiteId(){
		return this.siteId;
	}
	public CmsWordsHistory setCreateTime(java.util.Date createTime){
	 this.createTime=createTime;
	 return this;
	}
	public java.util.Date getCreateTime(){
		return this.createTime;
	}
	public CmsWordsHistory setUpdateTime(java.util.Date updateTime){
	 this.updateTime=updateTime;
	 return this;
	}
	public java.util.Date getUpdateTime(){
		return this.updateTime;
	}

}
